package com.corner.utils.view;

import android.app.Activity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.corner.R;
import com.corner.app.ConsTants;


/**
 * Created by Administrator on 2015/5/6.
 */
public class MainActionBar {
    @CustomFont(ConsTants.TYPE_FACE)
    @FindView(R.id.btn_actionbar_left)
    public Button btnLeft;

    @CustomFont(ConsTants.TYPE_FACE)
    @FindView(R.id.btn_actionbar_right)
    public Button btnRight;

    @FindView(R.id.iv_actionbar_right)
    public ImageView ivRight;
    @FindView(R.id.iv_actionbar_left)
    public ImageView ivLeft;

    @CustomFont(ConsTants.TYPE_FACE)
    @FindView(R.id.tv_action_bar_middle)
    public TextView tvMiddle;

    @FindView(R.id.include_main_actionbar)
    public View viewActionBar;

    public MainActionBar(Activity activity) {
        InjectViewUtils.injectView(this, activity);
    }

    public void initActionBarButton() {
        ivRight.setVisibility(View.INVISIBLE);
        btnRight.setVisibility(View.GONE);
        btnLeft.setVisibility(View.INVISIBLE);
        ivLeft.setVisibility(View.GONE);
        ivRight.clearAnimation();
    }
}
